import '@ant-design/v5-patch-for-react-19';
import './assets/main.css'
import { createRoot } from 'react-dom/client';
import { AppWithRouter } from './router';
import React from 'react';

import * as Sentry from '@sentry/electron/renderer';

Sentry.init({
  dsn: "https://8cc4dd31916ed03b14026fb12635594c@o4510004440727552.ingest.de.sentry.io/4510004516028496",
  // 建议添加的额外配置
  environment: process.env.NODE_ENV || 'production',
  release: window.electronApi.process.versions as any,
  tracesSampleRate: 0.2  // 性能监控采样率
});

createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <AppWithRouter />
  </React.StrictMode>
);
